package com.ljl.test;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.entity.Billrecord;
import com.entity.Orderdetail;
import com.entity.Payrecord;
import com.service.ljl.billrecordservice;
import com.service.ljl.orderdetailservice;


public class billrecordtest {
	private billrecordservice billrecordservice;
	@Before
	public void init() {
		ApplicationContext ac = new ClassPathXmlApplicationContext("applicationContext.xml");
		billrecordservice=ac.getBean(billrecordservice.class);
	}
	@After
	public void tearDown() {
		billrecordservice=null;
	}
	
//	@Test
//	public void add() {
//		Billrecord billrecord=new Billrecord();
//		Payrecord payrecord=new Payrecord();
//		payrecord.setPcId(4);
//		billrecord.setPayrecord(payrecord);
//		billrecordservice.add(billrecord);
//	}

}
